package pers.duorhs.grgbusstation.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import pers.duorhs.grgbusstation.domain.Feedback;
import pers.duorhs.grgbusstation.mapper.FeedbackMapper;
import pers.duorhs.grgbusstation.service.FeedbackService;

import java.util.Date;

/**
 * @author yehaobo
 * @description 针对表【feedback】的数据库操作Service实现
 * @createDate 2022-08-03 15:32:45
 */
@Service
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements FeedbackService {

    /**
     * 新反馈
     *
     * @param feedback
     */
    @Override
    public void newFeedback(Feedback feedback) {
        feedback.setTime(new Date());
        this.save(feedback);
    }
}




